import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/getGoodsList',
    method: 'get',
    params
  })
}

export function getGoodsInfo(params) {
  return request({
    url: '/getGoodsInfo',
    method: 'get',
    params
  })
}

export function updateDeliverNo(data) {
  return request({
    url: '/updateDeliverNo',
    method: 'post',
    data
  })
}

export function deletePicture(data) {
  return request({
    url: '/deletePicture',
    method: 'post',
    data
  })
}

export function addGoods(data) {
  return request({
    url: '/addGoods',
    method: 'post',
    data
  })
}

export function updateGoods(data) {
  return request({
    url: '/updateGoods',
    method: 'post',
    data
  })
}

export function deleteGoods(data) {
  return request({
    url: '/deleteGoods',
    method: 'post',
    data
  })
}


